<?php include("../../includes/includes.php"); ?>
<?connect($config);?>
<!DOCTYPE html>
<html>
	<body>
<head>
<style type="text/css">
body
{
background-color: #fff;
}
</style></head>
		<?
		$reviews = getKPPStatusReviews(-1, -1, -1	);
		?>
		<br>
		<br>
		<br>
		<table width="100%">
		<tr><td valign="top">
		<table align="center" width="100%" border="2" cellpadding="10">
			<tr>
				<td width="25%"><b>Player</b></td>
				<td width="20%"><b>Description</b></td>
				<td width="5%"><b>Decided</b></td>
				<td width="5%"><b>Overall</b></td>
			</tr>
			<?$count3 = count($reviews);
			for ($i = 0; $i < $count3; $i++) {
				$playerDesc = getPlayerDisplayForPlayer($reviews[$i]->player);
				?>
			<tr>
				<td><?echo $playerDesc?></td>
				<td><?echo $reviews[$i]->description?></td>
				<td><?echo $reviews[$i]->getNumberDecided()?>/5</td>
				<td><?echo getImage($reviews[$i]->id, $reviews[$i]->getOverallDecision(), $playerDesc, $reviews[$i]->description)?></td>
			</tr>
			<?}?>
		</table>
		</td></tr></table>
		
		<?
		function getImage($id, $decision, $player, $description) {
			$result = "";
			if ($decision == "YES") {
				$result = "<img src='../../../images/tick.jpg'>";
			}
			else if ($decision == "NO") { 
				$result = "<img src='../../../images/cross.jpg'>";
			}
			else if ($decision == "HUNG") { 
				$result = "<b>HUNG</b>";
			}
                        else {
				$result = "<b>ND</b>";
                        }
			
			return $result;
		}
		?>
	</body>
</html>
<?mysql_close();?>